package demo5.junit.mock;

public class MockDao implements IDao {

	@Override
	public boolean exist(User user) {
		if(user==null) return false;
		if(user.getUsername().equals("admin")
				&&user.getPassword().equals("admin123")) {
			return true;
		}
		return false;
	}

}
